package cn.com.cetccst.activation.ui.dialog;

import android.content.Context;

import androidx.annotation.NonNull;

import cn.com.cetccst.uicomponents.binding.app.DataBindingConfig;
import cn.com.cetccst.uicomponents.binding.app.DataBindingDialog;

import cn.com.cetccst.activation.BR;
import cn.com.cetccst.activation.R;
import cn.com.cetccst.activation.databinding.DialogActivationProcessBinding;
import cn.com.cetccst.activation.ui.dialog.viewmodel.ProcessViewModel;

public class ActivationProcessDialog extends DataBindingDialog<DialogActivationProcessBinding> {

    ProcessViewModel viewModel;

    @Override
    protected void initViewModel() {
    }

    @Override
    protected DataBindingConfig getDataBindingConfig() {
        return new DataBindingConfig(R.layout.dialog_activation_process, BR.viewModel, viewModel)
                .addBindingParam(BR.click, new Click());
    }


    public ActivationProcessDialog(@NonNull Context context, ProcessViewModel viewModel) {
        super(context);
        this.viewModel = viewModel;
    }

    public class Click {
        public void close() {
            dismiss();
        }
    }
}
